<template>
  <div class="productClassContainer">
    <div class="productClassImg">
      <img :src="url" />
    </div>
    <slot></slot>
    <div class="productClassText">更多小米{{ title }}产品&nbsp;></div>
    <div
      class="divider_line"
      style="
        height: 0.05rem;
        border-bottom: 0.04rem solid rgb(245, 245, 245);
        background-color: rgb(245, 245, 245);
      "
    ></div>
  </div>
</template>

<script>
export default {
  name: "ProductClass",
  props: ["title", "url"],
};
</script>

<style scoped lang="less">
.productClassContainer {
  .productClassImg {
    width: 3.75rem;
    img {
      width: 100%;
    }
  }
  .productClassText {
    color: rgba(0, 0, 0, 0.6);
    height: 0.52rem;
    line-height: 0.52rem;
    font-size: 0.14rem;
    text-align: center;
  }
}
</style>